<template>
	<view class="work_order_container">
		<view class="mail_two">
			<u-tabs class="first_tabs" :list="list" :is-scroll="false" :current="current" :show-bar="false"
				inactive-color="#e3e3e3" active-color="#ffffff" bg-color="#cccccc" @change="change"></u-tabs>
			<!-- 报事报修 -->
			<!-- 			<view class="tabs" v-if="current==0">
				<uni-card style="height: 82rpx; margin: 0; border-radius: unset;">
					<u-tabs :list="list2" :current="current2" item-width="150rpx" :gutter="10" @change="change2">
					</u-tabs>
				</uni-card>
			</view> -->
			<!-- 巡更 -->
			<view class="tabs" v-if="current==0">
				<uni-card class="unique" style="height: 82rpx; margin: 0; border-radius: unset;">
					<u-tabs :list="list3" :current="current3" item-width="150rpx" bar-width="90" :gutter="10" @change="change3"
						style="color: red;">
					</u-tabs>
				</uni-card>
			</view>
			<!-- 巡检 -->
			<view class="tabs" v-if="current==1">
				<uni-card class="unique" style="height: 82rpx; margin: 0; border-radius: unset;">
					<u-tabs :list="list3" :current="current3" item-width="150rpx" bar-width="90" :gutter="10" @change="change3">
					</u-tabs>
				</uni-card>
			</view>
			<!-- 巡查 -->
			<view class="tabs" v-if="current==2">
				<uni-card class="unique" style="height: 82rpx; margin: 0; border-radius: unset;">
					<u-tabs :list="list3" :current="current3" item-width="150rpx" bar-width="90" :gutter="10" @change="change3">
					</u-tabs>
				</uni-card>
			</view>
			<!-- 抄表 -->
			<view class="tabs" v-if="current==3">
				<uni-card class="unique" style="height: 82rpx; margin: 0; border-radius: unset;">
					<u-tabs :list="list4" :current="current4" item-width="150rpx" bar-width="90" :gutter="10" @change="change4">
					</u-tabs>
				</uni-card>
			</view>
			<!-- 审批 -->
<!-- 			<view class="tabs" v-if="current==4">
				<uni-card class="unique" style="height: 82rpx; margin: 0; border-radius: unset;">
					<u-tabs :is-scroll="false" :list="list5" :current="current5" item-width="150rpx" bar-width="90" :gutter="10"
						@change="change5"></u-tabs>
				</uni-card>
			</view> -->
		</view>
		<view class="" style="position: fixed; z-index: 99;width: 100%;height: 20rpx;background: linear-gradient(to right, #e8f5ff , #effcff);">
		
		</view>

		<!-- 巡更 -->
		<view v-if="current==0" style="margin-top: 20rpx;">
			<!-- 全部 -->
			<uni-card class="second_card"  style="margin: 0;" v-if="current3==0">
<!-- 				<view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in reciveUserInfo" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" @click="patrolWaiting(item.id,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" :value="item.patrolStatus=='0'? '完成' : item.patrolStatus=='1'? '待接单' : '待执行'"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="patrolWaiting(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="patrolWaiting(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="patrolWaiting(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="patrolWaiting(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
			<!-- 待接单 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current3==1">
<!-- 				<view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData8" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" @click="securityPatrol(item.id)">
						<u-cell-item :arrow="false" :border-bottom="false" :value="item.patrolStatus=='0'? '完成' : item.patrolStatus=='1'? '待接单' : '待执行'"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityPatrol(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityPatrol(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityPatrol(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityPatrol(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
			<!-- 待执行 -->
			<uni-card class="second_card"  style="margin: 0;" v-if="current3==2">
<!-- 				<view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData17" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" @click="securityImplemented(item.id)">
						<u-cell-item :arrow="false" :border-bottom="false" :value="item.patrolStatus=='0'? '完成' : item.patrolStatus=='1'? '待接单' : '待执行'"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityImplemented(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityImplemented(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityImplemented(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityImplemented(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
<!-- 					<u-cell-item title="访春园道路坍塌维修建议" arrow-direction="right" @click="securityUnexecuted">
						<u-cell-item :arrow="false" :border-bottom="false" value="待发单"></u-cell-item>
					</u-cell-item> -->
				</u-cell-group>
			</uni-card>
			<!-- 已完成 -->
			<uni-card class="second_card"  style="margin: 0;" v-if="current3==3">
<!-- 				<view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData9" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" @click="securityExecution(item.id)">
						<u-cell-item :arrow="false" :border-bottom="false" :value="item.patrolStatus=='0'? '完成' : item.patrolStatus=='1'? '待接单' : '待执行'"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityExecution(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityExecution(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityExecution(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityExecution(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
<!-- 					<u-cell-item title="访春园道路坍塌维修建议" arrow-direction="right" @click="securityExecution">
						<u-cell-item :arrow="false" :border-bottom="false" value="待发单"></u-cell-item>
					</u-cell-item> -->
				</u-cell-group>
			</uni-card>
		</view>
		<!-- 巡检 -->
		<view v-if="current==1" style="margin-top: 20rpx;">
			<!-- 全部 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current3==0">
				<!-- <view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData12" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="patrolInspection(item.orderId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="patrolInspection(item.orderId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="patrolInspection(item.orderId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="patrolInspection(item.orderId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="未完成"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="patrolInspection(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="patrolInspection(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="patrolInspection(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="patrolInspection(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
			<!-- 待接单 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current3==1">
				<!-- <view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData10" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="patrolAll(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="patrolAll(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="patrolAll(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="patrolAll(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="未完成"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="patrolAll(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="patrolAll(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="patrolAll(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="patrolAll(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
			<!-- 待执行 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current3==2">
				<!-- <view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData18" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityInspection(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityInspection(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityInspection(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityInspection(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="未完成"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityInspection(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityInspection(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityInspection(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityInspection(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
			<!-- 已完成 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current3==3">
				<!-- <view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData11" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityFinish(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityFinish(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityFinish(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityFinish(item.orderId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="未完成"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityFinish(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityFinish(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityFinish(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityFinish(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
		</view>
		<!-- 巡查 -->
		<view v-if="current==2" style="margin-top: 20rpx;">
			<!-- 全部 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current3==0">
				<!-- <view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData13" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityDetails(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityDetails(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityDetails(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="未完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityDetails(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityDetails(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityDetails(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityDetails(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityDetails(item.patrolId,item.patrolStatus)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
			<!-- 待接单 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current3==1">
				<!-- <view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData14" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="pendingOrders(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="pendingOrders(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="pendingOrders(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="未完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="pendingOrders(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="pendingOrders(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="pendingOrders(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="pendingOrders(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="pendingOrders(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
			<!-- 待执行 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current3==2">
				<!-- <view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData19" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityPending(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityPending(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityPending(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityPending(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item> -->
					
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="securityPending(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="securityPending(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="securityPending(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="securityPending(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
<!-- 				<view class="time" style="margin-top: 36rpx;">
					2021-06-08 星期二 昨天
				</view>
				<u-cell-group :border="false">
					<u-cell-item title="抄表" arrow-direction="right" @click="pendingDetails">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待执行">
						</u-cell-item>
					</u-cell-item>
				</u-cell-group> -->
			</uni-card>
			<!-- 已完成 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current3==3">
				<!-- <view class="time">
					{{key}}
				</view> -->
				<u-cell-group :border="false" v-for="(item,index) in allData15" :key="index">
<!-- 					<u-cell-item :title="item.patrolName" arrow-direction="right" @click="patrolCompleted(item.patrolId)" v-if="item.patrolStatus==0">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" @click="patrolCompleted(item.patrolId)" v-if="item.patrolStatus==1">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" @click="patrolCompleted(item.patrolId)" v-if="item.patrolStatus==2">
						<u-cell-item :arrow="false" :border-bottom="false" value="未完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" @click="patrolCompleted(item.patrolId)" v-if="item.patrolStatus==3">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item> -->
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==0" @click="patrolCompleted(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待接单"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==1" @click="patrolCompleted(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="待执行"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==2" @click="patrolCompleted(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="完成"></u-cell-item>
					</u-cell-item>
					<u-cell-item :title="item.patrolName" arrow-direction="right" v-if="item.patrolStatus==3" @click="patrolCompleted(item.patrolId)">
						<u-cell-item :arrow="false" :border-bottom="false" value="超时完成"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
		</view>
		<!-- 抄表 -->
		<!-- <view v-if="current==3" style="margin-top: 20rpx;"> -->
			<!-- 全部 -->
<!-- 			<uni-card class="second_card" style="margin: 0;" v-if="current4==0">
				<view class="time">
					2021-06-09 星期三 今天
				</view>
				<u-cell-group :border="false">
					<u-cell-item title="抄表" arrow-direction="right" @click="securityWhole">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
						</u-cell-item>
					</u-cell-item>
					<u-cell-item title="复查" arrow-direction="right" @click="wholeSecond">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
						</u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card> -->
			<!-- 待接单 -->
<!-- 			<uni-card class="second_card" style="margin: 0;" v-if="current4==1">
				<view class="time">
					2021-06-09 星期三 今天
				</view>
				<u-cell-group :border="false">
					<u-cell-item title="抄表" arrow-direction="right" @click="securityWhole">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
						</u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card> -->
			<!-- 待执行 -->
<!-- 			<uni-card class="second_card" style="margin: 0;" v-if="current4==2">
				<view class="time">
					2021-06-09 星期三 今天
				</view>
				<u-cell-group :border="false">
					<u-cell-item title="抄表" arrow-direction="right" @click="securityReading">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
						</u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card> -->
			<!-- 待复查 -->
<!-- 			<uni-card class="second_card" style="margin: 0;" v-if="current4==3">
				<view class="time">
					2021-06-09 星期三 今天
				</view>
				<u-cell-group :border="false">
					<u-cell-item title="抄表" arrow-direction="right" @click="securityReviewed">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
						</u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card> -->
			<!-- 完成 -->
<!-- 			<uni-card class="second_card" style="margin: 0;" v-if="current4==4">
				<view class="time">
					2021-06-09 星期三 今天
				</view>
				<u-cell-group :border="false">
					<u-cell-item title="抄表" arrow-direction="right" @click="readingCompleted">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表" value="待发单">
						</u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card> -->
		<!-- </view> -->
		<!-- 审批 -->
		<view v-if="current==4" style="margin-top: 20rpx;">
			<!-- 待审批 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current5==0">
				<view class="time">
					2021-06-09 星期三 今天
				</view>
				<u-cell-group :border="false">
					<u-cell-item title="业主" arrow-direction="right" @click="pendingApproval">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
			<!-- 已审批 -->
			<uni-card class="second_card" style="margin: 0;" v-if="current5==1">
				<view class="time">
					2021-06-09 星期三 今天
				</view>
				<u-cell-group :border="false">
					<u-cell-item title="业主" arrow-direction="right" @click="pendingApproval">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表"></u-cell-item>
					</u-cell-item>
					<u-cell-item title="业主" arrow-direction="right" @click="memberInformation">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表"></u-cell-item>
					</u-cell-item>
					<u-cell-item title="业主" arrow-direction="right" @click="tenantInformation">
						<u-cell-item :arrow="false" :border-bottom="false" title="Y1#-2#单元总水表"></u-cell-item>
					</u-cell-item>
				</u-cell-group>
			</uni-card>
		</view>
<!-- 		<view class="icon_one">
			<u-icon name="plus-circle" size="120" @click="newworkOrder"></u-icon>
		</view> -->
		<!-- template部分，u-tabBar放在页面展现最后 -->
		<!-- <u-tabbar :list="tabBarList" :active-color="activeColor" :inactive-colot="inactiveColor"></u-tabbar> -->
		<!-- tabBar -->
		<tabBar v-if="flag"></tabBar>
	</view>
</template>

<script>
	import tabBar from "@/components/tabBar/tabBar.vue"
	import {
		mapGetters
	} from 'vuex'
	export default {
		components:{
			tabBar
		},
		props:["reciveUserInfo","allData8","allData9","allData12","allData10","allData11","allData13","allData14","allData15","allData17","allData18","allData19"],
		data() {
			return {
				list: [{
					name: '巡更'
				}, {
					name: '巡检',
				}, {
					name: '巡查',
				}],
				list2: [{
					name: '全部'
				}, {
					name: '待审核'
				}, {
					name: '待接单',
				}, {
					name: '待执行',
				}, {
					name: '待复查',
				}, {
					name: '评价',
				}],
				list3: [{
					name: '全部'
				}, {
					name: '待接单',
				}, {
					name: '待执行',
				}, {
					name: '已完成',
				}],
				list4: [{
					name: '全部'
				}, {
					name: '待接单',
				}, {
					name: '待执行',
				}, {
					name: '待复查',
				}, {
					name: '完成',
				}],
				list5: [{
					name: '待审批'
				}, {
					name: '已审批',
				}],
				current: 0,
				current2: 0,
				current3: 0,
				current4: 0,
				current5: 0,
				activeColor: "#55a0ff", // 选中时的颜色
				inactiveColor: "#000", // 未选中时的颜色
				user_type: '',
				flag:''
			}
		},
		computed: {
			...mapGetters([
				'tabBarList', // 获取展示的tabBar列表
			])
		},
		onLoad() {
			// this.getcoursetype()
		},
		onShow() {
			this.flag = true
		},
		onHide() {
			this.flag = false
			// console.log('onHide')
		},
		methods: {
			change(index) {
				this.current = index;
				console.log(this.current)
			},
			change2(index) {
				this.current2 = index;
				// console.log(this.current2)
			},
			change3(index) {
				this.current3 = index;
				// console.log(this.current2)
			},
			change4(index) {
				this.current4 = index;
				// console.log(this.current2)
			},
			change5(index) {
				this.current5 = index;
				// console.log(this.current2)
			},
			getcoursetype() { //课程分类
				this.$http.get('common/getImgCaptcha',{}).then(res => {
					console.log(res, '课程分类')
					uni.setStorageSync('userType', res.code);
					this.user_type = uni.getStorageSync("userType")
				})
			},
			reportDetails() {
				this.openUrl('/pagesA/work_order/reportDetails/reportDetails')
			},
			newworkOrder() {
				this.openUrl('/pagesA/work_order/newworkOrder/newworkOrder')
			},
			orderInformation() {
				this.openUrl('/pagesA/work_order/orderInformation/orderInformation')
			},
			implemented() {
				this.openUrl('/pagesA/work_order/implemented/implemented')
			},
			workInformation() {
				this.openUrl('/pagesA/work_order/workInformation/workInformation')
			},
			evaluate() {
				this.openUrl('/pagesA/work_order/evaluate/evaluate')
			},
			// 巡更全部
			patrolWaiting(patrolId,patrolStatus) {
				if(patrolStatus==0) {
					this.openUrl(`/pagesA/workSecurity/securityPatrol/securityImplemented/securityImplemented?patrolId=${patrolId}`)
				} else if(patrolStatus==1) {
					// 待执行
					this.openUrl(`/pagesA/workSecurity/securityPatrol/Implemented/Implemented?patrolId=${patrolId}`)
				}else {
					this.openUrl(`/pagesA/workSecurity/securityExecution/securityExecution?patrolId=${patrolId}`)
				}
				// this.openUrl(`/pagesA/workSecurity/patrolWaiting/patrolWaiting?id=${id}&patrolStatus=${patrolStatus}`)
			},
			// 巡更待接单
			securityPatrol(patrolId) {
				this.openUrl(`/pagesA/workSecurity/securityPatrol/securityImplemented/securityImplemented?patrolId=${patrolId}`)
			},
			// 巡更待执行第一行
			securityImplemented(patrolId) {
				this.openUrl(`/pagesA/workSecurity/securityPatrol/Implemented/Implemented?patrolId=${patrolId}`)
			},
			// 巡更待执行第二行
			securityUnexecuted(id) {
				this.openUrl(`/pagesA/workSecurity/securityUnexecuted/securityUnexecuted?id=${id}`) 
			},
			// // 巡更已完成第一行
			// securityCompleted(id) {
			// 	this.openUrl(`/pagesA/workSecurity/securityCompleted/securityCompleted?id=${id}`)
			// },
			// 巡更已完成第二行
			securityExecution(patrolId) {
				this.openUrl(`/pagesA/workSecurity/securityExecution/securityExecution?patrolId=${patrolId}`)
			},
			// 巡检全部
			patrolInspection(patrolId,patrolStatus) {
				if(patrolStatus==0) {
					this.openUrl(`/pagesA/workSecurity/patrolAll/patrolAll?patrolId=${patrolId}`)
				} else if(patrolStatus==1) {
					this.openUrl(`/pagesA/workSecurity/securityInspection/securityInspection?patrolId=${patrolId}`)
				} else {
					this.openUrl(`/pagesA/workSecurity/securityFinish/securityFinish?patrolId=${patrolId}`)
				}
				// this.openUrl('/pagesA/workSecurity/patrolAll/patrolAll')
			},
			// 巡检待接单
			patrolAll(patrolId) {
				this.openUrl(`/pagesA/workSecurity/patrolAll/patrolAll?patrolId=${patrolId}`)
			},
			// 巡检待执行
			securityInspection(patrolId) {
				this.openUrl(`/pagesA/workSecurity/securityInspection/securityInspection?patrolId=${patrolId}`)
			},
			// 巡检已完成
			securityFinish(patrolId) {
				this.openUrl(`/pagesA/workSecurity/securityFinish/securityFinish?patrolId=${patrolId}`)
			},
			// 巡查全部
			securityDetails(patrolId,patrolStatus) { 
				// 0是待接单
				// 2是待执行
				if(patrolStatus==0) {
					this.openUrl(`/pagesA/workSecurity/securityDetails/securityDetails?patrolId=${patrolId}`)
				} else if (patrolStatus==1){
					this.openUrl(`/pagesA/workSecurity/securityPending/securityPending?patrolId=${patrolId}`)
				} else {
					this.openUrl(`/pagesA/workSecurity/patrolCompleted/patrolCompleted?patrolId=${patrolId}`)
				}
			},
			// 巡查待接单
			pendingOrders(patrolId) {
				this.openUrl(`/pagesA/workSecurity/securityDetails/securityDetails?patrolId=${patrolId}`)
			},
			// 巡查待执行
			securityPending(patrolId) {
				this.openUrl(`/pagesA/workSecurity/securityPending/securityPending?patrolId=${patrolId}`)
			},
			// 巡查已完成
			patrolCompleted(patrolId) {
				this.openUrl(`/pagesA/workSecurity/patrolCompleted/patrolCompleted?patrolId=${patrolId}`)
			},
			// // 抄表全部
			// securityWhole() {
			// 	this.openUrl('/pagesA/workSecurity/securityWhole/securityWhole')
			// },
			// // 抄表全部第二个
			// wholeSecond() {
			// 	this.openUrl('/pagesA/workSecurity/wholeSecond/wholeSecond')
			// },
			// // 抄表待执行
			// securityReading() {
			// 	this.openUrl('/pagesA/workSecurity/securityReading/securityReading')
			// },
			// // 抄表待复查
			// securityReviewed() {
			// 	this.openUrl('/pagesA/workSecurity/securityReviewed/securityReviewed')
			// },
			// // 抄表完成
			// readingCompleted() {
			// 	this.openUrl('/pagesA/workSecurity/readingCompleted/readingCompleted')
			// }
		}
	}
</script>

<style lang="scss" scoped>
	/deep/.uni-card__content {
		color: red;
		padding: 0;
	}

	.mail_two {
		overflow: hidden;
		width: 100%;
		height: 308rpx;
		background-color: #cccccc;

		::v-deep .first_tabs {
			    position: fixed;
			    width: 100%;
			    z-index: 9;
			display: block;

			// margin-left: 33rpx !important;
			// margin-top: 150rpx !important;
			/deep/.u-tabs {
				height: 200rpx !important;
				background: linear-gradient(-99.24deg, #57E1FF 0%, #75F7FF 20%, #0D92FF 100%) !important;
				padding: 100rpx 0 0 33rpx;
			}

			.u-tab-item:nth-child(3) {
				// flex: unset !important;
			}

			.u-tab-item:nth-child(5) {
				flex: unset !important;
			}

		}

		.tabs {

			// /deep/.uni-card__content {
			// 	padding: 0;
			// }
			position: fixed;
			width: 100%;
			z-index: 99;
			margin-top: 223rpx;
			/deep/.uni-card__content--pd.data-v-19622063 {
				padding: 0;
			}
		}
	}

	/deep/.second_card {
		.time {
    margin: 42rpx 0 8rpx 0;
			text-align: center;
			color: #ccc;
		}

		/deep/.u-cell__value {
			margin-right: -18rpx;
		}

		.u-cell {
			padding: 12rpx 32rpx;
		}

		.uni-card__content {
			padding: 0 24rpx !important;
		}
	}

	.icon_one {
		position: absolute;
		top: 1000rpx;
		right: 10rpx;
		z-index: 999;
	}

	/deep/.uni-border {
		border-radius: unset !important;
		margin: 24rpx 0 !important;
	}

	.uni-border[data-v-19622063]:after {
		border: unset;
	}

	/deep/.uni-border.data-v-19622063:after {
		border: unset;
	}
</style>
